#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<assert.h>


char* my_strcpy(char* dest, const char* src)
{
	assert(dest && src);
	char* ret = dest;
	while (*dest++ = *src++)
		;
	return ret;
}


int main()
{
	char arr1[20] = "I can do it!";
	char arr2[20] = { 0 };
	printf("%s \n", my_strcpy(arr2, arr1));
	return 0;
}